#include "iBe.h"

Scriptable::Scriptable(const char * const _str)
{
}

Scriptable::Scriptable(const StringHash &_hash):nameHash(_hash)
{
}

Scriptable::~Scriptable()
{
}


/*
Scriptable::Scriptable::BaseParam::BaseParam(const char* const _str)
{
  hash = System::hash(_str);
}

Scriptable::Scriptable::BaseParam::BaseParam(const StringHash &_hash)
  :hash(_hash)
{}

Scriptable::Scriptable()
{}

Scriptable::~Scriptable()
{}

bool Scriptable::registerParam(BaseParam *_param)
{
  HashParamMapIterator it;

  it = hashParamMap.find(_param->hash);

  if (it == hashParamMap.end())
    {
      hashParamMap.insert( std::make_pair( _param->hash, _param ) );
      return true;
    }
  return false;
}

bool Scriptable::setValue(const StringHash &_name, const float &_value)
{
  HashParamMapIterator it;

  it = hashParamMap.find(_name);

  if (it == hashParamMap.end())
    {
      return false;
    }

  it->second->set(_value);
  return true;
}

void Scriptable::setNameHash(const StringHash &_name)
{}

const StringHash & Scriptable::getNameHash() const
{
  return nameHash; 
}
*/
